package com.fz.entity.project;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 中标候选人信息
 * </p>
 *
 * @author xmj
 * @since 2021-03-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("project_winner")
@ApiModel(value="ProjectWinner对象", description="中标候选人信息")
public class ProjectWinner extends Model<ProjectWinner> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "中标候选人名称")
    private String name;

    @ApiModelProperty(value = "项目id")
    private Long projectId;

    @ApiModelProperty(value = "标段id")
    private Long partId;

    @ApiModelProperty(value = "中标排序")
    private Integer sort;

    @ApiModelProperty(value = "公示编号")
    private Long noticeId;

    @ApiModelProperty(value = "中标日期")
    private LocalDate noticeDate;

    @ApiModelProperty(value = "公示期")
    private Integer timeLimit;

    @ApiModelProperty(value = "状态 0：公示、1：中标、2：无效")
    private String status;

    @ApiModelProperty(value = "无效原因")
    private String invalidReason;

    @ApiModelProperty(value = "变更公示编号")
    private Long chgNoticeId;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
